From: Florian Müllner Date: Tue, 7 Jul 2020 11:25:47 +0000 (+0200) Subject: workspacesView: Always sync geometry after showing overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~150 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ef56b1455330f8a6b441ad566751575cfaebeb14;p=gnome-shell.git workspacesView: Always sync geometry after showing overview We don't always want to sync the geometry when entering the overview, namely when the fade transition is used. However we do want the correct geometry once we have entered the overview, so that workspaces are at their place when switching from the app picker. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 0096b872b..82a0822bb 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -381,6 +381,8 @@ class WorkspacesDisplay extends St.Widget { this._windowDragEndId = Main.overview.connect('window-drag-begin', this._windowDragEnd.bind(this)); + this._overviewShownId = Main.overview.connect('shown', + this._syncWorkspacesActualGeometry.bind(this)); this._primaryIndex = Main.layoutManager.primaryIndex; this._workspacesViews = []; @@ -433,6 +435,7 @@ class WorkspacesDisplay extends St.Widget { global.workspace_manager.disconnect(this._reorderWorkspacesdId); Main.overview.disconnect(this._windowDragBeginId); Main.overview.disconnect(this._windowDragEndId); + Main.overview.disconnect(this._overviewShownId); } _windowDragBegin() {